<template>
	<view class="pr">
		<image src="/static/img/index/zs_bg.png" class="w-max" mode="widthFix"></image>
		<view class="pa w-max p86r" style="z-index: 2;top: 33%;left: 0;color: #FBE9CA;">
			<view class="opa8">企业名称*</view>
			<view class="bor h64r bor-rad8r mt25r mb40r x-c pl20 pr20" style="border-color: #3B4C80;">
				<input type="text" v-model="form.enterprise_name" class="w-max" />
			</view>
			<view class="opa8">您的姓名*</view>
			<view class="bor h64r bor-rad8r mt25r mb40r x-c pl20 pr20" style="border-color: #3B4C80;">
				<input type="text" v-model="form.name" class="w-max" />
			</view>
			<view class="opa8">您的联系方式*</view>
			<view class="bor h64r bor-rad8r mt25r mb40r x-c pl20 pr20" style="border-color: #3B4C80;">
				<input type="text" v-model="form.iphone" class="w-max" />
			</view>
			<view class="opa8">邮箱*</view>
			<view class="bor h64r bor-rad8r mt25r mb40r x-c pl20 pr20" style="border-color: #3B4C80;">
				<input type="text" v-model="form.emall" class="w-max" />
			</view>
			<view class="opa8">联系地址*</view>
			<view class="bor h64r bor-rad8r mt25r mb40r x-c pl20 pr20" style="border-color: #3B4C80;">
				<input type="text" v-model="form.address" class="w-max" />
			</view>
			<view class="opa8">留言备注信息*</view>
			<view class="bor  bor-rad8r mt25r mb40r  p20r " style="border-color: #3B4C80;">
				<textarea class="h150r w-max" v-model="form.remark" placeholder=""></textarea>
			</view>
			<view class="w-max h100r bor-rad100r mt20" @tap="submit">

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {
					enterprise_name: '', //企业名称
					name: '', //姓名
					iphone: '', //手机号
					emall: '', //邮箱
					address: '', //详细地址
					remark: '', //备注
				}
			};
		},
		methods: {
			submit() {
				// this.form.forEach(item => {
				// 	if (item) {

				// 	}
				// })
				// if(this.form.){

				// }
				this.$api.attract(this.form).then(res => {
					this.$msg(res.msg)
					setTimeout(() => {
						uni.navigateBack()
					}, 1000)
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		height: auto;
	}
</style>
